package com.jzo2o.customer.controller.worker;

import com.jzo2o.customer.model.domain.BankAccount;
import com.jzo2o.customer.model.dto.request.BankAccountUpsertReqDTO;
import com.jzo2o.customer.service.IBankAccountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 服务端银行账户接口设计
 * @author 45505
 */
@RestController("WorkerBankAccountController")
@RequestMapping("/worker/bank-account")
@Api(tags = "服务端-银行账户接口设计")
public class BankAccountController {

    @Resource
    private IBankAccountService bankAccountService;
    @PostMapping
    @ApiOperation("新增或更新银行账户接口")
    public void addOrUpdate(@RequestBody BankAccountUpsertReqDTO bankAccountUpsertReqDTO){
        bankAccountService.addOrUpdate(bankAccountUpsertReqDTO);
    }

//    @GetMapping("/currentUserBankAccount")
//    public BankAccount currentUserBankAccount(){
//
//    }


}
